<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes"/>

<xsl:template match="/pics/dirs">
<html>
<form method="POST">
<xsl:for-each select="dir">
Dir:<input type="text" name="r{@name}" value="{@name}"/>
Description:<input type="text" name="d{@name}" value="{descr/text()}"/>
<form method="POST">
<input type="hidden" name="del{@name}" value="1"/>
<input type="submit" name="del" value="Delete"/>
<input type="submit" name="show" value="Show"/>
</form>
</xsl:for-each>
<input type="submit" name="ok" value="OK"/>
</form>
<xsl:value-of select="/pics/message/text()"/>
</html>
</xsl:template>

</xsl:stylesheet>
